<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<!DOCTYPE html>
<html lang="en">
<head>
<title><s:message code="app.title" /></title>
<%@ include file="Include.jsp"%>
<script type="text/javascript">
	
	$(document).ready(function() {
		$("#sectorname").focus();	
	});
	
</script>
</head>
<body>
	<div class="container">
		<%@ include file="Menu.jsp"%>
		<h2><s:message code="sectorForm.addheader" /></h2>
		<hr>
		<form:form id="cancelForm">
		</form:form>
		<form:form class="form-horizontal" method="post" name="sectorForm" id="sectorForm" commandName="sectorForm"
	           modelAttribute="sectorForm" >
			
			<table class="table table-bordered">
			<tr>
				<th width="15%"><form:label path="sectorname"><s:message code="sectorForm.sectorname" /></form:label></th>
				<td width="*"><form:input path="sectorname" cssClass="input-medium" id="sectorname" maxlength="20" tabindex="1" />
				<form:errors cssClass="text-error" path="sectorname" />
				</td>
			</tr>
		</table>
		<br>
			<button class="btn btn-primary" type="submit" formaction="AddSector"><s:message code="app.add" /></button>
			<button class="btn" type="submit" formaction="ListSector" form="cancelForm" formmethod="get"><s:message code="app.cancel" /></button>
		</form:form>
		 <%@ include file="Footer.jsp"%>
	</div>
</body>
</html>